<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录页面</title>
	<%-- 静态包含 base标签、css样式、jQuery文件 --%>
	<%@ include file="/pages/common/head.jsp"%>
</head>
<body>

   <div id="header0">
	<img alt="loading" src="static/img/beauty.jpg" width="120px" height="100px"  align="middle" style="margin-top: -12px;cursor: pointer;border-radius: 5px">&nbsp;&nbsp;
	<a href="pages/user/first_page.jsp">首页</a>&nbsp;
	<a href="#">热销</a>&nbsp;
	<%--如果用户还没有登录,显示【登录和注册的菜单】 --%>
	<c:if test="${empty sessionScope.user}">
		<a href="pages/user/regist.jsp">注册</a>&nbsp;
		<a style="color: white" href="pages/user/login.jsp">登录</a>&nbsp;
	</c:if>
	<!--
	<%--如果已经登录，则显示登录成功之后的用户信息。--%>
	<c:if test="${not empty sessionScope.user}">
		<a href="userServlet?action=logout">注销</a>&nbsp;&nbsp;
		<a href="orderServlet?action=list">我的订单</a>&nbsp;
		<a href="manager/bookServlet?action=list">游戏管理</a>&nbsp;
	</c:if>
	-->
	<a href="pages/cart/cart.jsp">购物车</a>&nbsp;
</div>

				<div id="content1">
					<div class="login_form1">
						<div class="login_box">
							<div class="msg_cont">
								<b></b>
								<!--<span class="errorMsg">
									${ empty requestScope.msg ? "请输入用户名和密码":requestScope.msg }
								</span>
								-->
							</div>
							<div class="form">
								<form action="userServlet" method="post">
									<h2 style="color:white;font-weight: normal">登录</h2><br>
									<h4 style="color:white;font-weight: normal">到现有的账户</h4><br>
									<input type="hidden" name="action" value="login" />
									<label>帐户名称：</label><br>
									<label>
										<input class="itxt" type="text" placeholder="请输入用户名"
											   name="username" value="${requestScope.username}" />
									</label>
									<br/>
									<br/>
									<label>密码：</label><br>
									<label>
										<input class="itxt" type="password" placeholder="请输入密码"
											   name="password" />
									</label>
									<br/>
									<br/>
									<input type="submit" value="登录" class="button1"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<button class="button1"> <a class="a" href="pages/user/regist.jsp">加入</a></button>
								</form>
							</div>
							
						</div>
					</div>
				</div>

</body>
</html>